!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};e[i].call(n.exports,n,n.exports,s);n.l=!0;return n.exports}var i=[{name:"head-dlb/bundle.production.js",path:"head-dlb/static-1.213/bundle.production.js",ids:{}}];s.dlbpr=function(e,t){var n=i[e];if(!n.r){n.r=window["__webpack_require_"+n.name+"__"];if(!n.r)throw new Error("dlb "+n.name+" not loaded");n.r.linkDlb(s,n.ids)}return n.r(t)};s.m=e;s.c=t;s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})};s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};s.t=function(e,t){1&t&&(e=s(e));if(8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);s.r(i);Object.defineProperty(i,"default",{enumerable:!0,value:e});if(2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i};s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};s.d(t,"a",t);return t};s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};s.p="//static.hsappstatic.net/conversations-embed/static-1.10317/";s(s.s=0)}([function(e,t,s){"use strict";var i=s(1);(0,s(86).markStartPreDelay)();const n=()=>{(0,i.startOnceReady)();document.removeEventListener("DOMContentLoaded",n)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):(0,i.startOnceReady)()},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.startOnceReady=b;var i=s(2),n=s(50),o=s(88),r=s(90),a=s(111),d=s(39),c=s(32),l=s(33),u=m(s(42)),h=s(40),f=m(s(41)),p=s(112),g=s(99);function m(e){return e&&e.__esModule?e:{default:e}}const _=()=>{console.warn(`loadImmediately is set to false and widget.load() has not been called on window.${l.GLOBAL_VARIABLE} yet. Please call widget.load() first or set loadImmediately on window.${l.SETTINGS_VARIABLE} to true.`)},E=()=>{};function v({eventEmitter:e,logError:t=E}){const s=(0,r.createEmbedScriptContext)(),o=new i.WidgetShell(s,e,t);if(window.hubspot_live_messages_running)(0,n.warn)("duplicate instance of live chat exists on page");else{window.hubspot_live_messages_running=!0;o.start()}return o}function I(e){(0,o.loadWidgetCss)(document);if((0,c.getExternalApiSettings)().loadImmediately)v({logError:e});else{const t=new u.default,s=new f.default;(0,d.setupExternalApi)({debug:_,on:t.on,off:t.off,clear:_,resetAndReloadWidget:_,widget:{load:()=>{v({eventEmitter:t,logError:e}).loadWidget()},remove:_,open:_,close:_,refresh:_,status:()=>({loaded:!1})}});(0,h.flushOnReadyCallbacks)({logger:s})}}function b(){if((0,a.hasRequiredFeatures)(window)){const e=new p.ErrorLogger;(0,g.getIsLocal)()?I():e.captureErrors(()=>{I(e)})}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WidgetShell=void 0;var i=s(3),n=s(5),o=s(6),r=s(7),a=s(11),d=z(s(12)),c=s(14),l=s(15),u=s(17),h=z(s(16)),f=s(18),p=s(21),g=s(22),m=s(23),_=s(24),E=s(25),v=s(29),I=s(38),b=s(39),T=s(40),O=z(s(41)),S=z(s(42)),A=s(48),y=s(49),M=s(52),C=s(53),P=s(54),R=s(31),k=z(s(56)),w=z(s(61)),L=s(62),N=s(64),D=s(66),x=s(67),U=s(20),W=s(69),j=s(70),H=s(72),F=s(75),G=s(76),B=s(77),q=s(78),K=s(82),V=s(83),$=s(84),Y=s(87);function z(e){return e&&e.__esModule?e:{default:e}}const X="help-widget",Q=()=>{};class J{constructor(e,t,s){this.loadIFrame=()=>{(0,i.isAnyMobile)()&&document.documentElement.classList.add(p.MOBILE);const e=document.createElement("iframe");this.iframeSrc=this.embedScriptContext.getIFrameSrc();e.src=this.iframeSrc;e.title="chat widget";e.addEventListener("load",this.handleIframeLoad);e.allowFullscreen=!0;if((0,R.shouldEmbedInline)()){const t=document.querySelector((0,R.getInlineEmbedSelector)());if(!t){this.devLogger.error(`cannot embed widget - element at \`${(0,R.getInlineEmbedSelector)()}\` cannot be found`);return}const s=document.createElement("div");s.id=I.INLINE_PARENT_ID;e.id=I.INLINE_IFRAME_ID;s.appendChild(e);t.appendChild(s)}else{if(!document.getElementById(I.PARENT_ID)){const t=document.createElement("div");t.id=I.PARENT_ID;const s=document.createElement("div");s.className=p.SHADOW_CONTAINER;const i=(0,_.isEmbeddedInProduct)(this.embedScriptContext);if(i){t.classList.add(p.INTERNAL);s.classList.add(p.INTERNAL)}t.appendChild(s);i&&(e.id=X);t.appendChild(e);document.body.appendChild(t)}this.setFrameClass()}};this.setWidgetData=e=>{this.widgetData=e;this.setFrameClass()};this.embedScriptContext=e;this.isOpen=(0,v.shouldWidgetStartOpen)();this.widgetData=null;this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1;this.requestWidgetOpen=this.requestWidgetOpen.bind(this);this.requestWidgetClose=this.requestWidgetClose.bind(this);this.requestWidgetRefresh=(0,C.throttle)(this.requestWidgetRefresh.bind(this),1e3);this.handleWindowResize=this.handleWindowResize.bind(this);this.handleIframeLoad=this.handleIframeLoad.bind(this);this.handleResizeMessage=this.handleResizeMessage.bind(this);this.handleOpenChange=this.handleOpenChange.bind(this);this.handleStoreMessagesCookie=this.handleStoreMessagesCookie.bind(this);this.handleRequestWidget=this.handleRequestWidget.bind(this);this.handleWidgetRefresh=this.handleWidgetRefresh.bind(this);this.setWidgetNotLoaded=this.setWidgetNotLoaded.bind(this);this.removeIframe=this.removeIframe.bind(this);this.handleExternalApiEventMessage=this.handleExternalApiEventMessage.bind(this);this.loadWidget=(0,C.throttle)(this.loadWidget.bind(this),1e3);this.resetAndReloadWidget=this.resetAndReloadWidget.bind(this);this.setWidgetOpenCookie=this.setWidgetOpenCookie.bind(this);this.getStatus=this.getStatus.bind(this);this.handleScroll=this.handleScroll.bind(this);this.handleExitIntent=this.handleExitIntent.bind(this);this.extendedClearCookiesFunction=this.extendedClearCookiesFunction.bind(this);this.openToNewThread=this.openToNewThread.bind(this);this.devLogger=new O.default;this.eventEmitter=t||new S.default;this.logError=s?s.logError:Q;this.scrollPercentageTracker=new k.default({onScroll:this.handleScroll});this.exitIntentTracker=new w.default({onExitIntent:this.handleExitIntent});this.iframeMessage=(0,q.iframeMessagePool)({iframeSrc:this.embedScriptContext.getIFrameSrc()});this.apiUsageTracker=new W.ApiUsageTracker({postMessageToIframe:this.iframeMessage.post});const o=new j.PostMessageApiClient(this.iframeMessage.post),c=new d.default;this.postMessageReceiver=new r.PostMessageReceiver({[a.SHOW_PAGE_TITLE_NOTIFICATION]:c.handleShow,[a.CLEAR_PAGE_TITLE_NOTIFICATION]:c.handleClear,[n.REQUEST_WIDGET]:this.handleRequestWidget,[n.IFRAME_RESIZE]:this.handleResizeMessage,[n.OPEN_CHANGE]:this.handleOpenChange,[n.CLOSED_WELCOME_MESSAGE]:K.hideWelcomeMessage,[n.STORE_MESSAGES_COOKIE]:this.handleStoreMessagesCookie,[n.EXTERNAL_API_EVENT]:this.handleExternalApiEventMessage,[n.API_REQUEST]:o.makeApiRequest},{allowedOrigin:this.embedScriptContext.getIFrameDomain(),iframeUuid:this.embedScriptContext.iframeUuid});this.exitIntentTracker.registerPostMessageReceivers(this.postMessageReceiver);this.scrollPercentageTracker.registerPostMessageReceivers(this.postMessageReceiver)}handleExternalApiEventMessage(e){(0,A.handleExternalApiEventMessage)(e,{eventEmitter:this.eventEmitter})}handleScroll({scrollPercentage:e}){this.iframeMessage.post(o.SCROLL_PERCENTAGE_CHANGE,{scrollPercentage:e})}handleExitIntent(){this.iframeMessage.post(o.EXIT_INTENT)}getStatus(){return{loaded:this.hasLoadedIframe,pending:this.isLoadingIframe}}handleIframeLoad(){this.handleWindowResize();this.hasLoadedIframe=!0;this.isLoadingIframe=!1;(0,L.markEndPostDelay)();this.postPerfAttributes(this.embedScriptContext.getPerfAttributes())}postPerfAttributes(e){Math.random()<.5&&this.iframeMessage.post(o.PERF_ATTRIBUTES,{perfAttributes:e})}resetAndReloadWidget(){this.removeIframe();(0,x.resetAndLaunchWidget)()}removeIframe(){const e=(0,R.shouldEmbedInline)()?document.getElementById(I.INLINE_PARENT_ID):document.getElementById(I.PARENT_ID);e&&e.remove();this.iframeSrc=null;this.hasLoadedIframe=!1;this.isLoadingIframe=!1}handleResizeMessage({data:{height:e,width:t}={}}){(0,V.resizeWidgetIframe)({height:e,width:t,isOpen:this.isOpen})}setWidgetOpenCookie({isOpen:e}){(0,l.setCookie)(u.cookies.IS_OPEN,e,h.default.THIRTY_MINUTES)}handleOpenChange({data:{isOpen:e,isUser:t}}){const s=document.documentElement,n=document.getElementById(I.PARENT_ID).getElementsByClassName(p.SHADOW_CONTAINER)[0];this.isOpen=e;t&&this.setWidgetOpenCookie({isOpen:this.isOpen});if(this.isOpen){s.classList.add(p.ACTIVE);n.classList.add("active")}else{s.classList.remove(p.ACTIVE);n.classList.remove("active")}if((0,i.isAnyMobile)()&&this.isOpen){const e=window.innerHeight,t=window.innerWidth;(0,V.resizeWidgetIframe)({height:e,width:t,isOpen:this.isOpen})}}handleRequestWidget({source:e}){(0,H.sendWidgetDataToIframe)({source:e,widgetData:this.widgetData,embedScriptContext:this.embedScriptContext,apiUsageTracker:this.apiUsageTracker})}handleStoreMessagesCookie({data:e}){this.iframeMessage.post(o.FIRST_VISITOR_SESSION,{isFirstVisitorSession:!1});"yes"===(0,Y.getGlobalCookieOptOut)()&&window._hsp.push(["showBanner"]);(0,m.setMessagesUtk)(e)}requestWidgetOpen(){this.isOpen?this.devLogger.log("cannot open the widget, it is already open."):this.iframeMessage.post(o.REQUEST_OPEN)}requestWidgetClose(){this.isOpen?this.iframeMessage.post(o.REQUEST_CLOSE):this.devLogger.log("cannot close the widget, it is already closed")}handleWindowResize(){const e={height:window.innerHeight,width:window.innerWidth};this.iframeMessage.post(o.BROWSER_WINDOW_RESIZE,e)}requestWidgetRefresh({openToNewThread:e}={}){const{portalId:t}=this.embedScriptContext;if(this.hasLoadedIframe||!this.isLoadingIframe)if(this.hasLoadedIframe){const s=this.embedScriptContext.getInitialRequestUrl();(0,y.fetchWidgetData)({requestUrl:s,portalId:t},t=>{this.handleWidgetRefresh(t);e&&this.openToNewThread()})}else{this.loadWidget();e&&this.openToNewThread()}else this.devLogger.log("Cannot refresh the widget - it is currently loading.")}openToNewThread(){this.iframeMessage.post(o.OPEN_TO_NEW_THREAD)}extendedClearCookiesFunction(e){e&&e[U.RESET_WIDGET]&&this.removeIframe();(0,f.clearCookies)(e)}handleWidgetRefresh(e){this.setWidgetData(e);(0,c.getWidgetDataResponseType)(this.widgetData)===g.HIDE_WIDGET?this.removeIframe():this.iframeMessage.post(o.REFRESH_WIDGET_DATA,Object.assign({},this.widgetData,{},(0,P.getIframeQueryParams)(this.embedScriptContext)))}setWidgetNotLoaded(){this.hasLoadedIframe=!1;this.isLoadingIframe=!1}loadWidget(e={}){const{portalId:t}=this.embedScriptContext;if(this.isLoadingIframe){this.devLogger.log("Cannot load the widget - The widget is already being loaded.");this.logError("load widget called while public widget request is pending")}else if(this.hasLoadedIframe)this.devLogger.log("Cannot load the widget - the widget has already loaded.");else{this.isLoadingIframe=!0;e.widgetOpen&&this.setWidgetOpenCookie({isOpen:!0});(0,y.fetchWidgetData)({requestUrl:this.embedScriptContext.getInitialRequestUrl(),portalId:t},(0,$.handleTargetingAndDelay)(this.setWidgetData,this.loadIFrame,this.setWidgetNotLoaded),()=>{M.EVENTS.messagesInitialized({messageWillRender:!1})})}}start(){const{shouldRender:e}=(0,E.shouldRenderWidget)(this.embedScriptContext);if(e){(0,b.setupExternalApi)({debug:this.devLogger.debug,on:(e,t)=>{this.eventEmitter.on(e,t);this.apiUsageTracker.trackEventListener(e)},off:this.eventEmitter.off,clear:(...e)=>{this.extendedClearCookiesFunction(...e);this.apiUsageTracker.trackMethod("clear")},resetAndReloadWidget:this.resetAndReloadWidget,widget:{load:(...e)=>{this.loadWidget(...e);this.apiUsageTracker.trackMethod("load")},remove:()=>{this.removeIframe();this.apiUsageTracker.trackMethod("remove")},open:()=>{this.requestWidgetOpen();this.apiUsageTracker.trackMethod("open")},close:()=>{this.requestWidgetClose();this.apiUsageTracker.trackMethod("close")},refresh:(...e)=>{this.requestWidgetRefresh(...e);this.apiUsageTracker.trackMethod("refresh")},status:()=>{this.apiUsageTracker.trackMethod("status");return this.getStatus()}}},this.embedScriptContext);(0,T.flushOnReadyCallbacks)({logger:this.devLogger,trackCallback:this.apiUsageTracker.trackOnReady});(0,G.registerHashChangeListener)({requestWidgetOpen:this.requestWidgetOpen,isOpen:this.isOpen});(0,B.registerWindowResizeListener)({resizeCallbackFn:this.handleWindowResize});(0,F.registerCookieListeners)({postMessageToIframe:this.iframeMessage.post});(0,R.shouldLoadImmediately)()&&this.loadWidget()}else try{M.EVENTS.messagesInitialized({messageWillRender:!1})}catch(e){this.devLogger.log("widget load aborted")}}setFrameClass(){const e=document.getElementById(I.PARENT_ID);if(!e)return;const t=this.widgetData[D.WIDGET_LOCATION];(0,N.setClassInClassList)({widgetLocation:t,classList:e.classList})}}t.WidgetShell=J},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMobileState=a;t.isAnyMobile=d;t.isMobileSafari=c;t.isWindowsMobile=l;t.isOperaMini=u;t.isIE10=h;t.isIE11=f;var i=n(s(4));function n(e){return e&&e.__esModule?e:{default:e}}const o=/WebKit/i;function r(e,t){return e.test(t)}function a(e=navigator.userAgent){let t=e,s=t.split("[FBAN");void 0!==s[1]&&(t=s[0]);s=t.split("Twitter");void 0!==s[1]&&(t=s[0]);const n=new i.default.Class(t);n.other.webkit=r(o,t);n.safari=n.apple.device&&n.other.webkit&&!n.other.opera&&!n.other.chrome;return n}function d(){const e=a();return e.any&&!e.tablet}function c(){return a().safari}function l(){return a().windows.phone}function u(){return a().other.opera}function h(){const e=window.navigator.userAgent,t=e.indexOf("MSIE ");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}function f(){return window.navigator.userAgent.indexOf("Trident/")>0}},function(e,t,s){"use strict";var i,n,o;!function(s){var r=/iPhone/i,a=/iPod/i,d=/iPad/i,c=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,l=/Android/i,u=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,f=/Windows Phone/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,g=/BlackBerry/i,m=/BB10/i,_=/Opera Mini/i,E=/(CriOS|Chrome)(?=.*\bMobile\b)/i,v=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,I=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),b=function(e,t){return e.test(t)},T=function(e){var t=e||navigator.userAgent,s=t.split("[FBAN");void 0!==s[1]&&(t=s[0]);void 0!==(s=t.split("Twitter"))[1]&&(t=s[0]);this.apple={phone:b(r,t),ipod:b(a,t),tablet:!b(r,t)&&b(d,t),device:b(r,t)||b(a,t)||b(d,t)};this.amazon={phone:b(u,t),tablet:!b(u,t)&&b(h,t),device:b(u,t)||b(h,t)};this.android={phone:b(u,t)||b(c,t),tablet:!b(u,t)&&!b(c,t)&&(b(h,t)||b(l,t)),device:b(u,t)||b(h,t)||b(c,t)||b(l,t)};this.windows={phone:b(f,t),tablet:b(p,t),device:b(f,t)||b(p,t)};this.other={blackberry:b(g,t),blackberry10:b(m,t),opera:b(_,t),firefox:b(v,t),chrome:b(E,t),device:b(g,t)||b(m,t)||b(_,t)||b(v,t)||b(E,t)};this.seven_inch=b(I,t);this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch;this.phone=this.apple.phone||this.android.phone||this.windows.phone;this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet;if("undefined"==typeof window)return this},O=function(){var e=new T;e.Class=T;return e};if(e.exports&&"undefined"==typeof window)e.exports=T;else if(e.exports&&"undefined"!=typeof window)e.exports=O();else{n=[],i=s.isMobile=O(),void 0!==(o="function"==typeof i?i.apply(t,n):i)&&(e.exports=o)}}(void 0)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.API_REQUEST=t.STOP_TRACK_EXIT_INTENT=t.START_TRACK_EXIT_INTENT=t.STOP_TRACK_SCROLL_PERCENTAGE=t.START_TRACK_SCROLL_PERCENTAGE=t.EXTERNAL_API_EVENT=t.STORE_MESSAGES_COOKIE=t.REQUEST_WIDGET=t.CLOSED_WELCOME_MESSAGE=t.OPEN_CHANGE=t.IFRAME_RESIZE=void 0;const i="iframe-resize";t.IFRAME_RESIZE=i;const n="open-change";t.OPEN_CHANGE=n;const o="closed-welcome-message";t.CLOSED_WELCOME_MESSAGE=o;const r="request-widget";t.REQUEST_WIDGET=r;const a="store-messages-cookie";t.STORE_MESSAGES_COOKIE=a;const d="external-api-event";t.EXTERNAL_API_EVENT=d;const c="start-track-scroll-percentage";t.START_TRACK_SCROLL_PERCENTAGE=c;const l="stop-track-scroll-percentage";t.STOP_TRACK_SCROLL_PERCENTAGE=l;const u="start-track-exit-intent";t.START_TRACK_EXIT_INTENT=u;const h="stop-track-exit-intent";t.STOP_TRACK_EXIT_INTENT=h;const f="api-request";t.API_REQUEST=f},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.API_REQUEST_RESULT=t.OPEN_TO_NEW_THREAD=t.TRACK_API_USAGE=t.PERF_ATTRIBUTES=t.EXIT_INTENT=t.SCROLL_PERCENTAGE_CHANGE=t.BROWSER_WINDOW_RESIZE=t.REQUEST_CLOSE=t.REQUEST_OPEN=t.REFRESH_WIDGET_DATA=t.FIRST_VISITOR_SESSION=t.GLOBAL_COOKIE_OPT_OUT=t.HUBSPOT_UTK=t.WIDGET_DATA=void 0;const i="widget-data";t.WIDGET_DATA=i;const n="hubspot-utk";t.HUBSPOT_UTK=n;const o="global-cookie-opt-out";t.GLOBAL_COOKIE_OPT_OUT=o;const r="first-visitor-session";t.FIRST_VISITOR_SESSION=r;const a="refresh-widget-data";t.REFRESH_WIDGET_DATA=a;const d="request-open";t.REQUEST_OPEN=d;const c="request-close";t.REQUEST_CLOSE=c;const l="browser-window-resize";t.BROWSER_WINDOW_RESIZE=l;const u="scroll-percentage-change";t.SCROLL_PERCENTAGE_CHANGE=u;const h="exit-intent";t.EXIT_INTENT=h;const f="perf-attributes";t.PERF_ATTRIBUTES=f;const p="track-api-usage";t.TRACK_API_USAGE=p;const g="open-to-new-thread";t.OPEN_TO_NEW_THREAD=g;const m="api-request-result";t.API_REQUEST_RESULT=m},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageReceiver=void 0;var i=s(8),n=s(10);class o{constructor(e,{allowedOrigin:t,iframeUuid:s}){(0,n.objectInvariant)(e);(0,i.stringInvariant)(t);(0,i.stringInvariant)(s);this.allowedOrigin=t;this.iframeUuid=s;this._handlers=e;this.handleMessage=this.handleMessage.bind(this);window.addEventListener("message",this.handleMessage)}isOriginAllowed(e){return e===this.allowedOrigin}handleMessage(e){const{data:t,origin:s,source:i}=e;if(this.isOriginAllowed(s))try{const e=JSON.parse(t);if(e.uuid!==this.iframeUuid)return;const{type:s,data:n}=e,o=this._handlers[s];"function"==typeof o&&o({data:n,source:i})}catch(e){return}}register(e,t){this._handlers[e]=t}}t.PostMessageReceiver=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.stringInvariant=void 0;var i=n(s(9));function n(e){return e&&e.__esModule?e:{default:e}}const o=(e,t="")=>(0,i.default)("string"==typeof e,"Expected %s to be a string, not a %s",t||e,typeof e);t.stringInvariant=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var s=(e,t,s,i,n,o,r,a)=>{if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{const d=[s,i,n,o,r,a];let c=0;e=new Error("Invariant Violation: "+t.replace(/%s/g,()=>d[c++]))}e.framesToPop=1;throw e}};t.default=s;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.objectInvariant=void 0;var i=n(s(9));function n(e){return e&&e.__esModule?e:{default:e}}const o=(e,t="")=>(0,i.default)("object"==typeof e&&null!==e,"Expected %s to be an object",t||e);t.objectInvariant=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CLEAR_PAGE_TITLE_NOTIFICATION=t.SHOW_PAGE_TITLE_NOTIFICATION=void 0;const i="show-page-title-notification";t.SHOW_PAGE_TITLE_NOTIFICATION=i;const n="clear-page-title-notification";t.CLEAR_PAGE_TITLE_NOTIFICATION=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=s(8),n=s(13);class o{constructor(){this.handleShow=this.handleShow.bind(this);this.handleClear=this.handleClear.bind(this);this.notificationIntervalId=null;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=null}clearNotificationInterval(){clearInterval(this.notificationIntervalId)}notificationIntervalIsRunning(){return Boolean(this.notificationIntervalId)}start({title:e}){if(!this.notificationIntervalIsRunning()){this.cachedOriginalDocumentTitle=document.title;this.togglePageTitle({notificationTitle:e});this.notificationIntervalId=setInterval(()=>{this.togglePageTitle({notificationTitle:e})},n.NOTIFICATION_INTERVAL_MS)}}stop(){this.clearNotificationInterval();this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationIntervalId=null;this.notificationMessageIsInPageTitle=!1;this.cachedOriginalDocumentTitle=null}togglePageTitle({notificationTitle:e}){if(this.notificationMessageIsInPageTitle){this.updatePageTitle(this.cachedOriginalDocumentTitle);this.notificationMessageIsInPageTitle=!1}else{this.updatePageTitle(e);this.notificationMessageIsInPageTitle=!0}}handleShow({data:e}){this.start({title:e.title})}handleClear(){this.stop()}updatePageTitle(e){(0,i.stringInvariant)(e);document.title=e}}var r=o;t.default=r;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NOTIFICATION_INTERVAL_MS=void 0;const i=1250;t.NOTIFICATION_INTERVAL_MS=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getWidgetDataResponseType=n;const i="@type";function n(e){return e&&"object"==typeof e?e[i]:void 0}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCookie=r;t.getHostnameWithoutWww=a;t.setCookie=d;var i=n(s(16));function n(e){return e&&e.__esModule?e:{default:e}}let o=!1;function r(e){let t=null;if(document.cookie&&""!==document.cookie){const s=document.cookie.split(";");for(let i=0;i-1)n.push("Secure");else if(!o){console.warn("HubSpot Conversations: You are using conversations on a non-https site! Not using https puts your visitor's data at risk, please enforce using https.");o=!0}const r=n.join(";");document.cookie=r}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i=864e5;var n={TWO_MINUTES:12e4,THIRTY_MINUTES:18e5,ONE_DAY:i,SIX_MONTHS:30*i*6};t.default=n;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookieValues=t.cookies=void 0;const i={HUBSPOT:"hubspotutk",MESSAGES:"messagesUtk",IS_OPEN:"hs-messages-is-open",HIDE_WELCOME_MESSAGE:"hs-messages-hide-welcome-message",HUBSPOT_API_CSRF:"hubspotapi-csrf",HSTC:"__hstc",HSSC:"__hssc",GLOBAL_COOKIE_OPT_OUT:"__hs_opt_out"};t.cookies=i;const n={GLOBAL_COOKIE_OPT_OUT_YES:"yes",GLOBAL_COOKIE_OPT_OUT_NO:"no"};t.cookieValues=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.clearCookies=a;var i=s(17),n=s(19),o=s(1),r=s(20);function a(e){(0,n.deleteCookie)(i.cookies.MESSAGES);(0,n.deleteCookie)(i.cookies.IS_OPEN);(0,n.deleteCookie)(i.cookies.HIDE_WELCOME_MESSAGE);if(e&&e[r.RESET_WIDGET]){window.hubspot_live_messages_running=!1;(0,o.startOnceReady)()}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.deleteCookie=n;var i=s(15);function n(e){(0,i.setCookie)(e,"",-1)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RESET_WIDGET=void 0;const i="resetWidget";t.RESET_WIDGET=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ALIGNED_RIGHT_CLASS=t.ALIGNED_LEFT_CLASS=t.INTERNAL=t.SHADOW_CONTAINER=t.MOBILE=t.ACTIVE=void 0;const i="hs-messages-widget-open";t.ACTIVE=i;const n="hs-messages-mobile";t.MOBILE=n;const o="shadow-container";t.SHADOW_CONTAINER=o;const r="internal";t.INTERNAL=r;const a="widget-align-left";t.ALIGNED_LEFT_CLASS=a;const d="widget-align-right";t.ALIGNED_RIGHT_CLASS=d},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.HIDE_WIDGET=t.V1=void 0;const i="V1";t.V1=i;const n="HIDE_WIDGET";t.HIDE_WIDGET=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setMessagesUtk=o;var i=s(15),n=s(17);function o(e){(0,i.setCookie)(n.cookies.MESSAGES,e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isEmbeddedInProduct=c;const i=53,n=99535353,o=/^(?:app|local)\.hubspot(?:qa)?\.com$/,r=/(?:pricing)\/[0-9]+/,a=/signup-hubspot/,d="pricing";function c({portalId:e,hostname:t=window.location.hostname,pathname:s=window.location.pathname}){const c=-1!==s.indexOf(d)&&!r.test(s),l=a.test(s);return!(!o.test(t)||c||l)&&(-1!==t.indexOf("qa")?e===i||e===n:e===i)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldRenderWidget=void 0;var i=s(3),n=s(24),o=s(26),r=s(27);const a=({portalId:e})=>{let t=!1;(0,o.getPortalIdFromPath)(window.location.pathname)&&(t=!0);const s=(0,n.isEmbeddedInProduct)({portalId:e})&&!t,a=window.disabledHsPopups&&window.disabledHsPopups.indexOf("LIVE_CHAT")>-1;return(0,i.isIE10)()?{shouldRender:!1,reason:"IE_10"}:(0,i.isIE11)()?{shouldRender:!1,reason:"IE_11"}:(0,i.isWindowsMobile)()?{shouldRender:!1,reason:"WINDOWS_PHONE"}:(0,i.isOperaMini)()?{shouldRender:!1,reason:"OPERA_MINI"}:(0,r.isUsingUnsupportedFramework)()?{shouldRender:!1,reason:"UNSUPPORTED_FRAMEWORK"}:s?{shouldRender:!1,reason:"MISSING_PORTAL_ID"}:a?{shouldRender:!1,reason:"IS_EMBEDDED_MEETINGS"}:{shouldRender:!0}};t.shouldRenderWidget=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPortalIdFromPath=n;const i=/^\/(?:[A-Za-z0-9-_]*)\/(\d+)(?:\/|$)/;function n(e){try{return i.exec(e)[1]}catch(e){return""}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isUsingUnsupportedFramework=void 0;var i=s(28);const n=()=>{const e=i.METHODS.filter(e=>!!e).length;return Boolean(e)};t.isUsingUnsupportedFramework=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.METHODS=void 0;const i=[Object.prototype.toJSON,Array.prototype.toJSON,String.prototype.toJSON];t.METHODS=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldWidgetStartOpen=c;var i=s(30),n=s(15),o=s(31),r=s(17),a=s(36),d=s(37);function c(){const e=(0,o.shouldEmbedInline)();if(!e&&(0,i.cookieIsSet)(r.cookies.IS_OPEN)){const e=(0,n.getCookie)(r.cookies.IS_OPEN);return(0,d.stringToBoolean)(e)}return e||(0,a.urlHasHsChatHashLink)(window.location.href)||void 0}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.cookieIsSet=void 0;var i=s(15);const n=e=>null!==(0,i.getCookie)(e);t.cookieIsSet=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIdentificationToken=t.getIdentificationEmail=t.getEnableWidgetCookieBanner=t.shouldDisableAttachment=t.shouldEmbedInline=t.getInlineEmbedSelector=t.shouldBeFullscreen=t.shouldLoadImmediately=void 0;var i=s(32);const n=()=>!!(0,i.getExternalApiSettings)().loadImmediately;t.shouldLoadImmediately=n;const o=()=>!!(0,i.getExternalApiSettings)().isFullscreen;t.shouldBeFullscreen=o;const r=()=>(0,i.getExternalApiSettings)().inlineEmbedSelector;t.getInlineEmbedSelector=r;const a=()=>!!(0,i.getExternalApiSettings)().inlineEmbedSelector;t.shouldEmbedInline=a;const d=()=>!!(0,i.getExternalApiSettings)().disableAttachment;t.shouldDisableAttachment=d;const c=()=>(0,i.getExternalApiSettings)().enableWidgetCookieBanner;t.getEnableWidgetCookieBanner=c;const l=()=>(0,i.getExternalApiSettings)().identificationEmail;t.getIdentificationEmail=l;const u=()=>(0,i.getExternalApiSettings)().identificationToken;t.getIdentificationToken=u},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getExternalApiSettings=d;var i=s(33),n=s(34),o=s(8),r=s(35);const a={loadImmediately:!0,isFullscreen:!1,inlineEmbedSelector:"",disableAttachment:!1,enableWidgetCookieBanner:!1,identificationEmail:"",identificationToken:""};function d(){const e=window[i.SETTINGS_VARIABLE],t=Object.assign({},a,e);(0,n.booleanInvariant)(t.loadImmediately,"mergedSettings.loadImmediately");(0,n.booleanInvariant)(t.isFullscreen,"mergedSettings.isFullscreen");(0,n.booleanInvariant)(t.disableAttachment,"mergedSettings.disableAttachment");(0,r.oneOfListInvariant)(t.enableWidgetCookieBanner,"mergedSettings.enableWidgetCookieBanner",[!1,!0,i.ON_WIDGET_LOAD,i.ON_EXIT_INTENT]);(0,o.stringInvariant)(t.inlineEmbedSelector,"mergedSettings.inlineEmbedSelector");(0,o.stringInvariant)(t.identificationEmail,"mergedSettings.identificationEmail");(0,o.stringInvariant)(t.identificationToken,"mergedSettings.identificationToken");return t}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ON_WIDGET_LOAD=t.ON_EXIT_INTENT=t.SETTINGS_VARIABLE=t.ON_READY_CALLBACKS=t.GLOBAL_VARIABLE=void 0;const i="HubSpotConversations";t.GLOBAL_VARIABLE=i;const n="hsConversationsOnReady";t.ON_READY_CALLBACKS=n;const o="hsConversationsSettings";t.SETTINGS_VARIABLE=o;const r="ON_EXIT_INTENT";t.ON_EXIT_INTENT=r;const a="ON_WIDGET_LOAD";t.ON_WIDGET_LOAD=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.booleanInvariant=void 0;var i=n(s(9));function n(e){return e&&e.__esModule?e:{default:e}}const o=(e,t)=>(0,i.default)(!0===e||!1===e,"Expected %s to be a boolean but received a %s",t||e,typeof e);t.booleanInvariant=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.oneOfListInvariant=void 0;var i=n(s(9));function n(e){return e&&e.__esModule?e:{default:e}}const o=(e,t,s)=>(0,i.default)(s.indexOf(e)>-1,`Expected %s to be one of ${s.toString()} but got %s`,t,e);t.oneOfListInvariant=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.urlHasHsChatHashLink=void 0;const i=new RegExp(""+"#hs-chat-open","i"),n=e=>i.test(e);t.urlHasHsChatHashLink=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.stringToBoolean=void 0;const i=e=>"true"===e;t.stringToBoolean=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INLINE_IFRAME_ID=t.INLINE_PARENT_ID=t.PARENT_ID=void 0;const i="hubspot-messages-iframe-container";t.PARENT_ID=i;const n="hubspot-conversations-inline-parent";t.INLINE_PARENT_ID=n;const o="hubspot-conversations-inline-iframe";t.INLINE_IFRAME_ID=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setupExternalApi=n;var i=s(33);function n(e){window[i.GLOBAL_VARIABLE]=e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.flushOnReadyCallbacks=n;var i=s(33);function n({logger:e,trackCallback:t}){const s=window[i.ON_READY_CALLBACKS];if(Array.isArray(s)){t&&t();s.forEach(t=>{try{t()}catch(t){e.error(t.message)}})}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;const i="HubSpot Conversations log:";class n{constructor({debug:e}={}){this._debug=Boolean(e);this.debug=this.debug.bind(this)}_isDebugMode(){return this._debug}debug(e){this._debug=e}log(e){this._isDebugMode()&&console.log(`${i} ${e}`)}error(e){this._isDebugMode()&&console.error(`${i} ${e}`)}}var o=n;t.default=o;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=d(s(43)),n=s(8),o=s(44),r=s(45),a=s(46);function d(e){return e&&e.__esModule?e:{default:e}}class c{constructor(){this._eventEmitter=new i.default;this._namespacedEventType=this._namespacedEventType.bind(this);this.on=this.on.bind(this);this.off=this.off.bind(this);this.trigger=this.trigger.bind(this)}_namespacedEventType(e){return`${r.EVENT_NAMESPACE}:${e}`}on(e,t){(0,n.stringInvariant)(e);(0,o.functionInvariant)(t);if(!e.length)return;const s=this._namespacedEventType(e);this._eventEmitter.addListener(s,t)}off(e,t){(0,n.stringInvariant)(e);(0,o.functionInvariant)(t);if(!e.length)return;const s=this._namespacedEventType(e);this._eventEmitter.removeListener(s,t)}trigger(e,t){(0,a.eventTypeInvariant)(e);const s=this._namespacedEventType(e);this._eventEmitter.emit(s,t)}}var l=c;t.default=l;e.exports=t.default},function(e,t,s){"use strict";var i,n;n=function(){return function e(t,s,n){function o(a,d){if(!s[a]){if(!t[a]){if(!d&&"function"==typeof i&&i)return i(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=s[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,s,n)}return s[a].exports}for(var r="function"==typeof i&&i,a=0;a(0,i.default)("function"==typeof e&&null!==e,"Expected %s to be a function",e);t.functionInvariant=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EVENT_NAMESPACE=void 0;const i="HubSpotConversations";t.EVENT_NAMESPACE=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.eventTypeInvariant=void 0;var i=a(s(9)),n=r(s(47));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;o=function(){return e};return e}function r(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=i?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(s,n,r):s[n]=e[n]}s.default=e;t&&t.set(e,s);return s}function a(e){return e&&e.__esModule?e:{default:e}}const d=Object.keys(n).map(e=>n[e]),c=e=>(0,i.default)(-1!==d.indexOf(e),"Expected a valid event type but received %s. Valid event types include %s.",e,d);t.eventTypeInvariant=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CONTACT_ASSOCIATED=t.INPUT_STAGING=t.UNREAD_CONVERSATION_COUNT_CHANGED=t.CONVERSATION_CLOSED=t.CONVERSATION_STARTED=void 0;const i="conversationStarted";t.CONVERSATION_STARTED=i;const n="conversationClosed";t.CONVERSATION_CLOSED=n;const o="unreadConversationCountChanged";t.UNREAD_CONVERSATION_COUNT_CHANGED=o;const r="inputStaging";t.INPUT_STAGING=r;const a="contactAssociated";t.CONTACT_ASSOCIATED=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleExternalApiEventMessage=void 0;var i=s(10),n=s(8);const o=({data:e},{eventEmitter:t})=>{(0,n.stringInvariant)(e.eventType);(0,i.objectInvariant)(e.payload);t.trigger(e.eventType,e.payload)};t.handleExternalApiEventMessage=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.fetchWidgetData=f;t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=t.WIDGET_WILL_LOAD_CODES=void 0;var i=s(24),n=s(50),o=s(51);const r="X-HubSpot-Messages-Uri",a=4,d=[200,304];t.WIDGET_WILL_LOAD_CODES=d;const c=[204,404];t.EXPECTED_WIDGET_WILL_NOT_LOAD_CODES=c;const l=e=>d.indexOf(e)>-1,u=e=>!l(e)&&c.indexOf(e)<0,h=()=>{};function f({requestUrl:e,portalId:t},s,d=h){const c=new XMLHttpRequest;c.addEventListener("readystatechange",()=>{if(c.readyState===a)if(l(c.status))try{const e=JSON.parse(c.responseText);s(e)}catch(e){(0,n.warn)("Initial messages API response is invalid");d()}else{u(c.status)&&(0,n.warn)("Initial messages API call failed");d()}});c.open("GET",e);const f="about:srcdoc"===window.location.href?window.top.location.href:window.location.href;c.setRequestHeader(r,f);(0,i.isEmbeddedInProduct)({portalId:t})&&(0,o.addAuthToRequest)(c);c.send()}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=i;function i(e){window.console&&console.warn(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addAuthToRequest=t.addCsrfHeader=void 0;var i=s(15),n=s(17);const o=e=>{e.setRequestHeader("X-HubSpot-CSRF-hubspotapi",(0,i.getCookie)(n.cookies.HUBSPOT_API_CSRF))};t.addCsrfHeader=o;const r=e=>{o(e);e.withCredentials=!0};t.addAuthToRequest=r},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.triggerEvent=n;t.EVENTS=void 0;const i="hubspot:messages:";function n(e,t){let s;const n=`${i}${e}`;if("function"==typeof window.Event)s=Object.assign(new Event(n),t);else{s=Object.assign(document.createEvent("Event"),t);s.initEvent(n,!0,!0)}window.dispatchEvent(s)}const o={messagesInitialized:({messageWillRender:e,reason:t})=>{n("initialized",{messageWillRender:e,reason:t})}};t.EVENTS=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.throttle=i;function i(e,t){let s=!1,i=null;return(...n)=>{if(s)i=()=>{e(...n)};else{s=!0;e(...n);setTimeout(()=>{s=!1;"function"==typeof i&&i();i=null},t)}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeQueryParams=c;var i=s(15),n=s(3),o=s(24),r=s(55),a=s(29),d=s(31);function c({messagesUtk:e,hubspotUtk:t,portalId:s,iframeUuid:c,globalCookieOptOut:l,isFirstVisitorSession:u,hstc:h,isInCMS:f}){const p=(0,n.isAnyMobile)(),g=(0,d.shouldEmbedInline)(),m=(0,a.shouldWidgetStartOpen)(),_={uuid:c,mobile:p,mobileSafari:(0,n.isMobileSafari)(),hideWelcomeMessage:(0,r.shouldHideWelcomeMessage)(),hstc:h,domain:(0,i.getHostnameWithoutWww)(),inApp53:(0,o.isEmbeddedInProduct)({portalId:s}),messagesUtk:e,url:encodeURIComponent(window.location.href),inline:g,isFullscreen:(0,d.shouldBeFullscreen)(),globalCookieOptOut:l,isFirstVisitorSession:u,isAttachmentDisabled:(0,d.shouldDisableAttachment)(),enableWidgetCookieBanner:(0,d.getEnableWidgetCookieBanner)(),isInCMS:f};void 0!==m&&(_.startOpen=m);t&&(_.hubspotUtk=t);return _}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.shouldHideWelcomeMessage=o;var i=s(15),n=s(17);function o(){return!!(0,i.getCookie)(n.cookies.HIDE_WELCOME_MESSAGE)||!1}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=s(57),n=s(58),o=s(59),r=s(60),a=s(5);class d{constructor({onScroll:e}){this._onScroll=e;this._handleScroll=this._handleScroll.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_handleScroll(){const e=(0,r.getPageHeight)()-(0,o.getViewportHeight)();if(0===e)return;const t=100*(0,n.getBodyScrollTop)()/e;this._onScroll({scrollPercentage:t})}_add(){const e=!0;(0,i.passiveEventListenerSupported)()?window.addEventListener("scroll",this._handleScroll,{capture:e,passive:!0}):window.addEventListener("scroll",this._handleScroll,e)}add(){this.remove();this._add()}remove(){const e=!0;(0,i.passiveEventListenerSupported)()?window.removeEventListener("scroll",this._handleScroll,{capture:e,passive:!0}):window.removeEventListener("scroll",this._handleScroll,e)}registerPostMessageReceivers(e){e.register(a.START_TRACK_SCROLL_PERCENTAGE,this.add);e.register(a.STOP_TRACK_SCROLL_PERCENTAGE,this.remove)}}var c=d;t.default=c;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.passiveEventListenerSupported=void 0;const i=()=>{let e=!1;try{const t={get passive(){e=!0}};window.addEventListener("test",t,t);window.removeEventListener("test",t,t)}catch(t){e=!1}return e};t.passiveEventListenerSupported=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getBodyScrollTop=void 0;const i=()=>document.body.scrollTop||document.documentElement.scrollTop;t.getBodyScrollTop=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getViewportHeight=void 0;const i=()=>Math.max(window.innerHeight||0,document.documentElement.clientHeight);t.getViewportHeight=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPageHeight=void 0;const i=()=>Math.max(document.body.offsetHeight,document.body.scrollHeight);t.getPageHeight=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=s(5);class n{constructor({onExitIntent:e}){this._onExitIntent=e;this._handleMouseOut=this._handleMouseOut.bind(this);this._isExitIntent=this._isExitIntent.bind(this);this.add=this.add.bind(this);this.remove=this.remove.bind(this)}_isExitIntent(e){if(!e)return!1;const t=e.relatedTarget||e.toElement;return(!t||"HTML"===t.nodeName)&&e.clientY<100}_handleMouseOut(e){this._isExitIntent(e)&&this._onExitIntent()}_add(){window.document.addEventListener("mouseout",this._handleMouseOut)}add(){this.remove();this._add()}remove(){window.document.removeEventListener("mouseout",this._handleMouseOut)}addExitIntentTracker(){this.exitIntentTracker.add()}removeExitIntentTracker(){this.exitIntentTracker.remove()}registerPostMessageReceivers(e){e.register(i.START_TRACK_EXIT_INTENT,this.add);e.register(i.STOP_TRACK_EXIT_INTENT,this.remove)}}var o=n;t.default=o;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markEndPostDelay=n;t.markEndPreDelay=o;var i=s(63);function n(){try{performance.mark(i.END_MARK_POST_DELAY)}catch(e){}}function o(){try{performance.mark(i.END_MARK_PRE_DELAY)}catch(e){}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.EXECUTION_MEASUREMENT_PRE_DELAY=t.EXECUTION_MEASUREMENT_POST_DELAY=t.END_MARK_POST_DELAY=t.START_MARK_POST_DELAY=t.END_MARK_PRE_DELAY=t.START_MARK_PRE_DELAY=void 0;const i="embed-script-start-pre-delay";t.START_MARK_PRE_DELAY=i;const n="embed-script-end-pre-delay";t.END_MARK_PRE_DELAY=n;const o="embed-script-start-post-delay";t.START_MARK_POST_DELAY=o;const r="embed-script-end-post-delay";t.END_MARK_POST_DELAY=r;const a="embed-script-load-time-post-delay";t.EXECUTION_MEASUREMENT_POST_DELAY=a;const d="embed-script-load-time-pre-delay";t.EXECUTION_MEASUREMENT_PRE_DELAY=d},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.setClassInClassList=void 0;var i=s(65),n=s(21);const o={[i.LEFT_ALIGNED]:n.ALIGNED_LEFT_CLASS,[i.RIGHT_ALIGNED]:n.ALIGNED_RIGHT_CLASS},r=({widgetLocation:e,classList:t})=>{const s=o[e];if(!t.contains(s)){Object.keys(o).filter(t=>t!==e).forEach(e=>{t.remove(e)});t.add(s)}};t.setClassInClassList=r},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.RIGHT_ALIGNED=t.LEFT_ALIGNED=void 0;const i="LEFT_ALIGNED";t.LEFT_ALIGNED=i;const n="RIGHT_ALIGNED";t.RIGHT_ALIGNED=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WIDGET_LOCATION=void 0;const i="widgetLocation";t.WIDGET_LOCATION=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resetAndLaunchWidget=void 0;var i=s(18),n=s(1),o=s(68);const r=()=>{(0,i.clearCookies)();window[o.USER_TOKEN_KEY]="";window.hubspot_live_messages_running=!1;(0,n.startOnceReady)()};t.resetAndLaunchWidget=r},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.USER_TOKEN_KEY=void 0;const i="__hsUserToken";t.USER_TOKEN_KEY=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ApiUsageTracker=void 0;var i=s(6);class n{constructor({postMessageToIframe:e}){if("function"!=typeof e)throw new TypeError("ApiUsageTracker: postMessageToIframe was not a function");this._postMessageToIframe=e;this.sendEventToTracker=this.sendEventToTracker.bind(this);this.trackSettingsUsed=this.trackSettingsUsed.bind(this);this.trackMethod=this.trackMethod.bind(this);this.trackEventListener=this.trackEventListener.bind(this);this.trackOnReady=this.trackOnReady.bind(this)}sendEventToTracker(e,t={}){this._postMessageToIframe(i.TRACK_API_USAGE,{eventName:e,properties:t})}trackSettingsUsed(e){const t={};!1===e.loadImmediately&&(t.loadImmediately=!0);e.inlineEmbedSelector&&(t.inlineEmbedSelector=!0);e.enableWidgetCookieBanner&&(t.enableWidgetCookieBanner=!0);e.disableAttachment&&(t.disableAttachment=!0);Object.keys(t).length>0&&this.sendEventToTracker("HubspotConversations-hsConversationsSettings-used",t)}trackMethod(e){this.sendEventToTracker("HubspotConversations-api-method-used",{method:e})}trackEventListener(e){this.sendEventToTracker("HubspotConversations-api-event-listener-registered",{event:e})}trackOnReady(){this.sendEventToTracker("HubspotConversations-hsConversationsOnReady-used",{method:"hsConversationsOnReady"})}}t.ApiUsageTracker=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostMessageApiClient=void 0;var i=s(71),n=s(6);class o{constructor(e){this.makeApiRequest=({data:e})=>{const{type:t,url:s,data:o}=e,r="/_hcms"+s;this.currentRequest&&this.currentRequest.readyState!==i.DONE_STATE&&this.abortCurrentApiRequest();this.currentRequest=(0,i.doRequest)(t)(r,o)((e,t)=>{t?this.postMessage(n.API_REQUEST_RESULT,{result:"failed",data:t,url:s}):this.postMessage(n.API_REQUEST_RESULT,{result:"succeeded",data:e,url:s})})};this.postMessage=e;this.currentRequest=null}abortCurrentApiRequest(){this.currentRequest.abort()}}t.PostMessageApiClient=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.put=t.post=t.get=t.doRequest=t.DONE_STATE=void 0;const i=4;t.DONE_STATE=i;const n=e=>e>=300,o=e=>(t,s)=>o=>{const r=new XMLHttpRequest;r.addEventListener("readystatechange",()=>{if(r.readyState===i)try{const e=JSON.parse(r.responseText);n(r.status)?o(null,e):o(e)}catch(e){o(null,"Invalid api response")}});r.open(e,t);r.send(s);return r};t.doRequest=o;const r=o("GET");t.get=r;const a=o("POST");t.post=a;const d=o("PUT");t.put=d},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.sendWidgetDataToIframe=void 0;var i=s(73),n=s(74),o=s(32),r=s(54),a=s(6);const d=({source:e,widgetData:t,embedScriptContext:s,apiUsageTracker:d})=>{e.postMessage(JSON.stringify({type:a.WIDGET_DATA,data:Object.assign({},t,{},(0,r.getIframeQueryParams)(s))}),"*");(0,i.getIsUngatedForDontThrottleInitialMessageInApp)(t)||(0,n.throttleInProductInitialMessagePopups)(s);d.trackSettingsUsed((0,o.getExternalApiSettings)())};t.sendWidgetDataToIframe=d},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIsUngatedForDontThrottleInitialMessageInApp=void 0;const i=e=>e&&e.gates&&e.gates["Conversations:Visitor:DontThrottleInitialMessageWhileInApp"];t.getIsUngatedForDontThrottleInitialMessageInApp=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.throttleInProductInitialMessagePopups=c;var i=s(15),n=s(17),o=d(s(16)),r=s(24),a=s(55);function d(e){return e&&e.__esModule?e:{default:e}}function c({portalId:e}){(0,r.isEmbeddedInProduct)({portalId:e})&&!(0,a.shouldHideWelcomeMessage)()&&(0,i.setCookie)(n.cookies.HIDE_WELCOME_MESSAGE,!0,o.default.ONE_DAY)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerCookieListeners=void 0;var i=s(6),n=s(17),o=s(19);const r=({postMessageToIframe:e})=>{const t=t=>{const s=t.categories?t.categories.functionality:t.allowed,r=s?n.cookieValues.GLOBAL_COOKIE_OPT_OUT_NO:n.cookieValues.GLOBAL_COOKIE_OPT_OUT_YES;e(i.GLOBAL_COOKIE_OPT_OUT,{globalCookieOptOut:r});s||(0,o.deleteCookie)(n.cookies.MESSAGES)};window._hsq=window._hsq||[];window._hsq.push(["addPrivacyConsentListener",t]);window._hsq.push(["addUserTokenListener",t=>e(i.HUBSPOT_UTK,{utk:t})])};t.registerCookieListeners=r},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerHashChangeListener=void 0;var i=s(36);const n=({requestWidgetOpen:e,isOpen:t})=>{window.addEventListener("hashchange",()=>{(0,i.urlHasHsChatHashLink)(window.location.href)&&!t&&e()})};t.registerHashChangeListener=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.registerWindowResizeListener=void 0;const i=({resizeCallbackFn:e})=>{window.addEventListener("resize",e,{passive:!0})};t.registerWindowResizeListener=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.iframeMessagePool=t.createQueue=void 0;var i=s(79),n=s(80),o=s(81);const r=()=>{const e=[];return{enqueue:t=>e.unshift(t),dequeue:()=>e.shift(),peek:()=>e[0]}};t.createQueue=r;const a=({iframeSrc:e})=>{const t=r();return{post:(s,r={})=>{const a=(0,i.getIframeFromDocumentQuery)();if(a){(0,n.postMessageToIframe)({iframe:a,iframeSrc:e,type:s,data:r});(0,o.executeAllIframeMessageQueueEvents)({iframe:a,iframeSrc:e,eventQueue:t})}else t.enqueue({type:s,data:r})}}};t.iframeMessagePool=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getIframeFromDocumentQuery=void 0;var i=s(31),n=s(38);const o=()=>{const e=(0,i.shouldEmbedInline)()?(0,i.getInlineEmbedSelector)():"#"+n.PARENT_ID;return document.querySelector(e+" iframe")};t.getIframeFromDocumentQuery=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.postMessageToIframe=void 0;const i=({iframe:e,iframeSrc:t,type:s,data:i})=>{e.contentWindow.postMessage(JSON.stringify({type:s,data:i}),t)};t.postMessageToIframe=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.executeAllIframeMessageQueueEvents=void 0;var i=s(80);const n=({iframe:e,iframeSrc:t,eventQueue:s})=>{do{const n=s.dequeue();if(n){const{type:s,data:o}=n;(0,i.postMessageToIframe)({iframe:e,iframeSrc:t,type:s,data:o})}}while(s.peek()&&0!==Object.keys(s.peek()))};t.executeAllIframeMessageQueueEvents=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hideWelcomeMessage=void 0;var i=s(17),n=s(15),o=r(s(16));function r(e){return e&&e.__esModule?e:{default:e}}const a=()=>{(0,n.setCookie)(i.cookies.HIDE_WELCOME_MESSAGE,!0,o.default.THIRTY_MINUTES)};t.hideWelcomeMessage=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.resizeWidgetIframe=void 0;var i=s(38),n=s(3);const o=({height:e,width:t,isOpen:s})=>{const o=document.getElementById(i.PARENT_ID);if((0,n.isAnyMobile)()&&s){o.style.width="100%";o.style.height="100%"}else if(e&&t){o.style.width=t+"px";o.style.height=e+"px"}};t.resizeWidgetIframe=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.handleTargetingAndDelay=void 0;var i=s(3),n=s(14),o=s(22),r=s(85),a=s(52),d=s(62),c=s(86);const l=(e,t,s)=>l=>{const u=!((0,n.getWidgetDataResponseType)(l)===o.HIDE_WIDGET)&&!!l.sessionId;if(u){const{shouldDelayLoadingIframe:s,timeDelay:n}=(0,r.getDelayLoadingWidgetIframe)(l,(0,i.isAnyMobile)());(0,d.markEndPreDelay)();if(s)setTimeout(()=>{e(l);(0,c.markStartPostDelay)();t()},n);else{e(l);(0,c.markStartPostDelay)();t()}}else s();a.EVENTS.messagesInitialized({messageWillRender:u})};t.handleTargetingAndDelay=l},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getDelayLoadingWidgetIframe=void 0;const i=(e,t)=>{const{message:s}=e,{popOpenWelcomeMessage:i,popOpenWidget:n,popMessageOnSmallScreens:o,clientTriggers:r}=s,{displayOnTimeDelay:a}=r,{enabled:d,timeDelaySeconds:c}=a,l=1e3*c;return t?{shouldDelayLoadingIframe:!o&&d,timeDelay:l}:{shouldDelayLoadingIframe:!n&&!i&&d,timeDelay:l}};t.getDelayLoadingWidgetIframe=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.markStartPreDelay=n;t.markStartPostDelay=o;var i=s(63);function n(){try{performance.mark(i.START_MARK_PRE_DELAY)}catch(e){}}function o(){try{performance.mark(i.START_MARK_POST_DELAY)}catch(e){}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getGlobalCookieOptOut=o;var i=s(15),n=s(17);function o(){return(0,i.getCookie)(n.cookies.GLOBAL_COOKIE_OPT_OUT)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.loadWidgetCss=i;function i(e){const t=s(89),i=e.createElement("style");i.setAttribute("type","text/css");if(i.styleSheet)i.styleSheet.cssText=t;else{const e=document.createTextNode(t);i.appendChild(e)}const n=e.body.childNodes[0];e.body.insertBefore(i,n)}},function(e,t){e.exports='html.hs-messages-widget-open.hs-messages-mobile,html.hs-messages-widget-open.hs-messages-mobile body{overflow:hidden!important;position:relative!important}html.hs-messages-widget-open.hs-messages-mobile body{height:100%!important;margin:0!important}#hubspot-messages-iframe-container{display:initial!important;z-index:2147483647;position:fixed!important;bottom:0!important}#hubspot-messages-iframe-container.widget-align-left{left:0!important}#hubspot-messages-iframe-container.widget-align-right{right:0!important}#hubspot-messages-iframe-container.internal{z-index:1016}#hubspot-messages-iframe-container.internal iframe{min-width:108px}#hubspot-messages-iframe-container .shadow-container{display:initial!important;z-index:-1;position:absolute;width:0;height:0;bottom:0;content:""}#hubspot-messages-iframe-container .shadow-container.internal{display:none!important}#hubspot-messages-iframe-container .shadow-container.active{width:400px;height:400px}#hubspot-messages-iframe-container iframe{display:initial!important;width:100%!important;height:100%!important;border:none!important;position:absolute!important;bottom:0!important;right:0!important;background:transparent!important}'},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.createEmbedScriptContext=c;var i=s(91),n=s(92),o=s(99),r=d(s(100)),a=s(31);function d(e){return e&&e.__esModule?e:{default:e}}function c(){const{messagesEnv:e,portalId:t,messagesHublet:s}=(0,o.getScriptEnvParams)();let d=!1;try{d=localStorage&&"true"===localStorage["live-chat-local-toggle"]}catch(e){}const c="undefined"!=typeof messagesConfig&&messagesConfig.iFrameDomain,l=(0,i.getUuid)(),u=encodeURIComponent(document.referrer),{messagesUtk:h,hubspotUtk:f,hstc:p,hssc:g,globalCookieOptOut:m,isFirstVisitorSession:_}=(0,n.prepareVisitorIdentifiers)();return new r.default({messagesHublet:s,globalCookieOptOut:m,hubspotUtk:f,hstc:p,hssc:g,iFrameDomainOverride:c,iframeUuid:l,isFirstVisitorSession:_,messagesEnv:e,messagesUtk:h,referrer:u,portalId:t,useLocalBuild:d,identificationEmail:(0,a.getIdentificationEmail)(),identificationToken:(0,a.getIdentificationToken)()})}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getUuid=o;function i(){let e=(new Date).getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const s=(e+16*Math.random())%16|0;e=Math.floor(e/16);return("x"===t?s:3&s|8).toString(16)})}function n(){const e=window.crypto||window.msCrypto,t=new Uint16Array(8);e.getRandomValues(t);const s=e=>{let t=e.toString(16);for(;t.length<4;)t="0"+t;return t};return s(t[0])+s(t[1])+s(t[2])+s(t[3])+s(t[4])+s(t[5])+s(t[6])+s(t[7])}function o(){const e=window.crypto||window.msCrypto;return void 0!==e&&void 0!==e.getRandomValues&&void 0===window.Uint16Array?n():i()}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.prepareVisitorIdentifiers=void 0;var i=s(93),n=s(94),o=s(96),r=s(87),a=s(97),d=s(98),c=s(23);const l=()=>{const e=(0,n.getMessagesUtkFromCookie)();e&&(0,c.setMessagesUtk)(e);const t=(0,o.getHubSpotUtkFromCookie)(),s=(0,a.getHstcFromCookie)(),l=(0,d.getHsscFromCookie)(),u=(0,r.getGlobalCookieOptOut)(),{messagesUtk:h,isFirstVisitorSession:f}=(0,i.chooseMessagesUtk)({existingMessagesUtk:e});return{messagesUtk:h,hubspotUtk:t,hstc:s,hssc:l,globalCookieOptOut:u,isFirstVisitorSession:f}};t.prepareVisitorIdentifiers=l},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.chooseMessagesUtk=n;var i=s(91);function n({existingMessagesUtk:e}={}){let t,s=!1;if(e)t=e;else{s=!0;t=(0,i.getUuid)()}return{messagesUtk:t,isFirstVisitorSession:s}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getMessagesUtkFromCookie=r;var i=s(15),n=s(95),o=s(17);function r(){const e=(0,i.getCookie)(o.cookies.MESSAGES);return(0,n.isUtk)(e)?e:void 0}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isUtk=n;t.UTK_REGEX=void 0;const i=/[a-zA-Z\d]{32}/;t.UTK_REGEX=i;function n(e){return i.test(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHubSpotUtkFromCookie=o;var i=s(17),n=s(15);function o(){return(0,n.getCookie)(i.cookies.HUBSPOT)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHstcFromCookie=o;var i=s(17),n=s(15);function o(){return(0,n.getCookie)(i.cookies.HSTC)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getHsscFromCookie=o;var i=s(17),n=s(15);function o(){return(0,n.getCookie)(i.cookies.HSSC)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getScriptEnvParams=a;t.getIsLocal=t.getMessagesHublet=t.getMessagesEnv=t.getPortalId=void 0;const i=()=>{const e=document.getElementById("hubspot-messages-loader");return parseInt(e.getAttribute("data-hsjs-portal"),10)};t.getPortalId=i;const n=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-env");t.getMessagesEnv=n;const o=()=>document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-hublet");t.getMessagesHublet=o;const r=()=>"true"===document.getElementById("hubspot-messages-loader").getAttribute("data-hsjs-local");t.getIsLocal=r;function a(){return{ungatedFor:document.getElementById("hubspot-messages-loader").getAttribute("ungated-for"),portalId:i(),messagesEnv:n(),messagesHublet:o(),isLocal:r()}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=void 0;var i=s(101),n=s(8),o=s(24),r=s(102),a=s(105),d=s(54),c=s(106),l=s(107),u=s(31);class h{constructor(e){const{globalCookieOptOut:t,hubspotUtk:s,hstc:o,hssc:r,iFrameDomainOverride:a,iframeUuid:d,isFirstVisitorSession:c,messagesEnv:l,messagesUtk:u,referrer:h,portalId:f,useLocalBuild:p,identificationEmail:g,identificationToken:m,messagesHublet:_}=e;(0,n.stringInvariant)(d,"iframeUuid");(0,n.stringInvariant)(l,"messagesEnv");(0,n.stringInvariant)(u,"messagesUtk");(0,i.numberInvariant)(f,"portalId");this.globalCookieOptOut=t;this.hubspotUtk=s;this.hstc=o;this.hssc=r;this.iFrameDomainOverride=a;this.iframeUuid=d;this.isFirstVisitorSession=c;this.messagesEnv=l;this.messagesUtk=u;this.referrer=h;this.portalId=f;this.useLocalBuild=p;this.identificationEmail=g;this.identificationToken=m;this.messagesHublet=_;this.getIFrameDomain=this.getIFrameDomain.bind(this);this.getIFrameSrc=this.getIFrameSrc.bind(this);this.getInitialRequestUrl=this.getInitialRequestUrl.bind(this)}getIFrameDomain(){const e="qa"===this.messagesEnv?"qa":"",t="na1"!==this.messagesHublet&&this.messagesHublet?"-"+this.messagesHublet:"";return this.iFrameDomainOverride?this.iFrameDomainOverride:this.useLocalBuild?`https://local${t}.hubspot${e}.com`:`https://app${t}.hubspot${e}.com`}getIFrameSrc(){const e=(0,a.serializeQueryParameters)((0,d.getIframeQueryParams)({messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,iframeUuid:this.iframeUuid,globalCookieOptOut:this.globalCookieOptOut,isFirstVisitorSession:this.isFirstVisitorSession,hstc:this.hstc,isInCMS:(0,c.isInCMS)()}));return`${this.getIFrameDomain()}/conversations-visitor/${this.portalId}/threads/utk/${this.messagesUtk}?${e}`}getEncodedIdentificationEmail(){let e=this.identificationEmail;e.includes("@")||(e=decodeURIComponent(e));return encodeURIComponent(e)}getInitialRequestUrl(){return(0,c.isInCMS)()?(0,r.getCMSRequestUrl)({messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken}):(0,o.isEmbeddedInProduct)({portalId:this.portalId})?(0,r.getInternalRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,portalId:this.portalId}):(0,r.getPublicRequestUrl)({messagesHublet:this.messagesHublet,messagesEnv:this.messagesEnv,messagesUtk:this.messagesUtk,hubspotUtk:this.hubspotUtk,portalId:this.portalId,referrer:this.referrer,hstc:this.hstc,hssc:this.hssc,email:this.identificationEmail&&this.getEncodedIdentificationEmail(),identificationToken:this.identificationToken})}getPerfAttributes(){const e=(0,l.getPerfAttributes)({portalId:this.portalId,messagesEnv:this.messagesEnv});if((0,u.shouldLoadImmediately)()&&e)return e}}var f=h;t.default=f;e.exports=t.default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.numberInvariant=void 0;var i=n(s(9));function n(e){return e&&e.__esModule?e:{default:e}}const o=(e,t="")=>(0,i.default)("number"==typeof e,"Expected %s to be a number, not a %s",t||e,typeof e);t.numberInvariant=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getInternalRequestUrl=a;t.getCMSRequestUrl=c;t.getPublicRequestUrl=l;var i=s(103),n=s(104),o=s(26),r=s(3);function a({messagesEnv:e,portalId:t,messagesUtk:s,messagesHublet:i}){const a=(0,o.getPortalIdFromPath)(window.location.pathname);return`${(0,n.getApiDomain)(e,i)}/livechat/v1/message/public/hubspot-app?portalId=${a}&mobile=${(0,r.isAnyMobile)()}&embeddedPortalId=${t}&traceId=${s}`}function d({messagesUtk:e,hubspotUtk:t,portalId:s,referrer:n,hstc:o,hssc:a,email:d,identificationToken:c}){let l=`?portalId=${s}&${i.bender.project}=${i.bender.depVersions[i.bender.project]}&mobile=${(0,r.isAnyMobile)()}`;e&&(l=`${l}&messagesUtk=${e}&traceId=${e}`);t&&(l=`${l}&hubspotUtk=${t}`);o&&(l=`${l}&__hstc=${o}`);a&&(l=`${l}&__hssc=${a}`);n&&(l=`${l}&referrer=${n}`);c&&(l=`${l}&identificationToken=${c}`);d&&(l=`${l}&email=${d}`);return l}function c({messagesUtk:e,hubspotUtk:t,portalId:s,referrer:i,hstc:n,hssc:o,email:r,identificationToken:a}){return"/_hcms/livechat/widget"+d({messagesUtk:e,hubspotUtk:t,portalId:s,referrer:i,hstc:n,hssc:o,email:r,identificationToken:a})}function l({messagesHublet:e,messagesEnv:t,messagesUtk:s,hubspotUtk:i,portalId:o,referrer:r,hstc:a,hssc:c,email:l,identificationToken:u}){return`${(0,n.getApiDomain)(t,e)}/livechat-public/v1/message/public${d({messagesUtk:s,hubspotUtk:i,portalId:o,referrer:r,hstc:a,hssc:c,email:l,identificationToken:u})}`}},function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"conversations-embed":"static-1.10317",isMobile:"static-1.4",StyleGuideUI:"static-3.267","conversations-internal-schema":"static-1.7773","head-dlb":"static-1.213",jasmine:"static-3.98","jasmine-runner":"static-1.77",sinon:"static-1.6",enviro:"static-4.52","hs-promise-rejection-tracking":"static-1.63",PortalIdParser:"static-2.48",raven:"static-3.19","raven-hubspot":"static-1.150"},depPathPrefixes:{"conversations-embed":"/conversations-embed/static-1.10317",isMobile:"/isMobile/static-1.4",StyleGuideUI:"/StyleGuideUI/static-3.267","conversations-internal-schema":"/conversations-internal-schema/static-1.7773","head-dlb":"/head-dlb/static-1.213",jasmine:"/jasmine/static-3.98","jasmine-runner":"/jasmine-runner/static-1.77",sinon:"/sinon/static-1.6",enviro:"/enviro/static-4.52","hs-promise-rejection-tracking":"/hs-promise-rejection-tracking/static-1.63",PortalIdParser:"/PortalIdParser/static-2.48",raven:"/raven/static-3.19","raven-hubspot":"/raven-hubspot/static-1.150"},project:"conversations-embed",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getApiDomain=i;function i(e,t){return`https://api${"na1"!==t&&t?"-"+t:""}.hubspot${"qa"===e?"qa":""}.com`}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.serializeQueryParameters=i;function i(e){return Object.keys(e).reduce((t,s)=>{t.push(`${s}=${e[s]}`);return t},[]).join("&")}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isInCMS=void 0;const i=()=>void 0!==window.hsVars;t.isInCMS=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPerfAttributes=a;var i=s(63),n=s(108),o=s(109),r=s(110);function a({portalId:e,messagesEnv:t}){const s="qa"===t?"qa":"",a=(0,r.buildNonCmsScriptLoaderPath)({env:s,portalId:e}),d=(0,n.buildCmsScriptLoaderSrc)({portalId:e}),c=(0,o.buildCmsScriptLoaderPath)({portalId:e}),l=`https://js.usemessages${s}.com/conversations-embed.js`,u=Boolean(document.querySelector(`script[src="${d}"]`));try{performance.measure(i.EXECUTION_MEASUREMENT_PRE_DELAY,i.START_MARK_PRE_DELAY,i.END_MARK_PRE_DELAY);performance.measure(i.EXECUTION_MEASUREMENT_POST_DELAY,i.START_MARK_POST_DELAY,i.END_MARK_POST_DELAY);const e=performance.getEntriesByName(i.EXECUTION_MEASUREMENT_PRE_DELAY)[0],t=performance.getEntriesByName(i.EXECUTION_MEASUREMENT_POST_DELAY)[0],s=e.duration+t.duration,n=performance.getEntriesByName(a)[0],o=performance.getEntriesByName(c)[0],r=(u?o:n).duration,d=performance.getEntriesByName(l)[0].duration;if(s&&r&&d)return{iframeLoadTime:s,scriptLoaderScriptTime:r,embedScriptTime:d}}catch(e){}return null}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderSrc=void 0;const i=({portalId:e})=>`/hs/scriptloader/${e}.js`;t.buildCmsScriptLoaderSrc=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildCmsScriptLoaderPath=void 0;var i=s(108);const n=({portalId:e})=>{const t=(0,i.buildCmsScriptLoaderSrc)({portalId:e});return`${document.location.origin}${t}`};t.buildCmsScriptLoaderPath=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.buildNonCmsScriptLoaderPath=void 0;const i=({env:e="",portalId:t})=>`${document.location.protocol}//js.hs-scripts${e}.com/${t}.js`;t.buildNonCmsScriptLoaderPath=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasRequiredFeatures=i;function i(e){return["function"==typeof e.WeakMap,"function"==typeof e.requestAnimationFrame].every(e=>!0===e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ErrorLogger=void 0;var i=s(50),n=s(113),o=s(99);const r="https://exceptions.hubspot.com/api/1/store/?sentry_key=7ab6425e7a7c4b01b71fdb51e76514bf&sentry_version=7",a=4;function d(){return Date.now()/1e3}function c(){const e=window.crypto||window.msCrypto;if(void 0!==typeof e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t);t[3]=4095&t[3]|16384;t[4]=16383&t[4]|32768;const s=function(e){let t=e.toString(16);for(;t.length<4;)t="0"+t;return t};return s(t[0])+s(t[1])+s(t[2])+s(t[3])+s(t[4])+s(t[5])+s(t[6])+s(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function l(e){const t=new XMLHttpRequest;t.addEventListener("readystatechange",()=>{t.readyState===a&&t.status>=300&&(0,i.warn)("Failed logging HSConversations error")});t.open("POST",r);t.setRequestHeader("Content-Type","text/plain;charset=UTF-8");t.send(JSON.stringify(e))}class u{constructor(){this.config={environment:(0,o.getMessagesEnv)(),tags:{portalId:(0,o.getPortalId)(),env:(0,o.getMessagesEnv)()},logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":navigator.userAgent},url:window.location.href}};this.logError=this.logError.bind(this)}logError(e){const t=d();l(Object.assign({},this.config,{event_id:c(),transaction:"conversations embed error",level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:e,value:e}]},timestamp:t}))}captureErrors(e){try{e()}catch(e){const t=d();if("Aborting: redirection in progress"!==e.message){const s=(0,n.computeStackTrace)(e);l(Object.assign({},this.config,{event_id:c(),transaction:s.stack[0].filename,level:"error",exception:{values:[{mechanism:{handled:!0,type:"generic"},type:s.name,value:s.message,stacktrace:{frames:s.stack.reverse()}}]},timestamp:t}))}throw e}}}t.ErrorLogger=u},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.computeStackTrace=c;const i="?";function n(){return"undefined"==typeof document||null==document.location?"":document.location.href}function o(){return"undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:`${document.location.protocol}//${document.location.hostname}${document.location.port?":"+document.location.port:""}`}function r(e){if(void 0===e.stack||!e.stack)return null;const t=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=e.stack.split("\n"),l=[];let u,h,f;for(let n=0,p=c.length;n eval")>-1&&(u=a.exec(h[3]))){h[3]=u[1];h[4]=u[2];h[5]=null}else 0!==n||h[5]||void 0===e.columnNumber||(l[0].column=e.columnNumber+1);f={filename:h[3],function:h[1]||i,args:h[2]?h[2].split(","):[],lineno:h[4]?+h[4]:null,colno:h[5]?+h[5]:null}}!f.function&&f.line&&(f.function=i);if(f.filename&&"blob:"===f.filename.substr(0,5)){const e=new XMLHttpRequest;e.open("GET",f.filename,!1);e.send(null);if(200===e.status){let t=e.responseText||"";t=t.slice(-300);const s=t.match(/\/\/# sourceMappingURL=(.*)$/);if(s){let e=s[1];"~"===e.charAt(0)&&(e=o()+e.slice(1));f.url=e.slice(0,-4)}}}l.push(f)}return l.length?{name:e.name,message:e.message,url:n(),stack:l}:null}function a(e,t,s){const n={filename:t,lineno:s};if(n.filename&&n.lineno){e.incomplete=!1;n.function||(n.function=i);if(e.stack.length>0&&e.stack[0].filename===n.filename){if(e.stack[0].lineno===n.lineno)return!1;if(!e.stack[0].lineno&&e.stack[0].function===n.function){e.stack[0].lineno=n.lineno;return!1}}e.stack.unshift(n);e.partial=!0;return!0}e.incomplete=!0;return!1}function d(e,t){const s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,o=[],r={};let l,u,h=!1;for(let e=d.caller;e&&!h;e=e.caller)if(e!==c){u={filename:null,function:i,lineno:null,colno:null};e.name?u.function=e.name:(l=s.exec(e.toString()))&&(u.function=l[1]);if(void 0===u.function)try{u.function=l.input.substring(0,l.input.indexOf("{"))}catch(e){}r[""+e]?h=!0:r[""+e]=!0;o.push(u)}t&&o.splice(0,t);const f={name:e.name,message:e.message,filename:n(),stack:o};a(f,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description);return f}function c(e,t){let s=null;t=null==t?0:+t;try{s=r(e);if(s)return s}catch(e){}try{s=d(e,t+1);if(s)return s}catch(e){}return{name:e.name,message:e.message,filename:n()}}}]); //# sourceMappingURL=project.js.map